﻿<%@ Page Language="C#" MasterPageFile="~/App_MasterPages/StationUserMaster.master" AutoEventWireup="true" CodeBehind="ViewToDoList.aspx.cs" Inherits="PUCIT.eFCS.ViewToDoList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    
        <script src="Scripts/JScript.js" type="text/javascript"></script>
        <div id="Contents">
        <table cellpadding="10">
            <tr>
                <td>
                    <h1>ToDo List</h1>
                </td>
                <td>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
                <td>
                   <b>Filter Circulations:</b> 
                    <asp:DropDownList ID="DropDownList1" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" AutoPostBack="true">
                    </asp:DropDownList> 
                </td>
            </tr>
        </table>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="ObjectDataSource1" onrowdatabound="GridView1_RowDataBound" 
                AllowPaging="True" CellPadding="10" PageSize="15">
            <PagerSettings Position="TopAndBottom" />
            <RowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <Columns>
                <asp:BoundField DataField="CirculationId" HeaderText="Circulation Id" 
                    SortExpression="CirculationId" />
                <asp:BoundField DataField="FormType" HeaderText="Form Type" 
                    SortExpression="FormType" />
                <asp:BoundField DataField="Initiater" HeaderText="Initiater" 
                    SortExpression="Initiater" />
                <asp:BoundField DataField="SubmissionDate" HeaderText="Submission Date" 
                    SortExpression="SubmissionDate" />
                <asp:BoundField DataField="SubmissionTime" HeaderText="Submission Time" 
                    SortExpression="SubmissionTime" />
                <asp:BoundField DataField="Progress" HeaderText="Progress" 
                    SortExpression="Progress" />
                <asp:TemplateField HeaderText="Action">
                    <ItemTemplate>
                        &nbsp;<asp:HyperLink ID="link" runat="server">Edit Details</asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <PagerStyle BorderStyle="Dashed" HorizontalAlign="Left" 
                VerticalAlign="Middle"/>
        </asp:GridView>
                    
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        SelectMethod="GetToDoList" TypeName="PUCIT.eFCS.Business.BusinessClass">
        <SelectParameters>
            <asp:SessionParameter Name="categoryId" SessionField="categoryId" Type="Int32" />
            <asp:QueryStringParameter DefaultValue="-1" Name="documentId" 
                QueryStringField="documentId" Type="Int32" />
            <asp:QueryStringParameter DefaultValue="1" Name="disableDocumentFilter" 
                QueryStringField="disableDocumentFilter" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    </div> 

</asp:Content>


